<?php $viewer = Agilet::getViewer(); ?>
<div>
	<ul class="miniMenu">
		<li>
			<a href="<?php echo Agilet::getUrl('dang-san-pham'); ?>">Đăng sản phẩm</a>
		</li>
		<li>
		<a href="<?php echo Agilet::getUrl('dang-rao-vat'); ?>">Đăng rao vặt</a>
		</li>
		<?php if($viewer):
		?>
		<li class="right">
			<a href="<?php echo $viewer->getUrl(); ?>"><?php echo $viewer -> getTitle(); ?>
			</a>
			<ul>
				<li class="dropdownCaret">					
				</li>
				<li>
					<div>
						<?php echo _T('Login as'); ?>
						<?php echo $viewer->getPhoto(); ?>
						<a href="<?php echo Agilet::getUrl('user/me'); ?>"><?php echo $viewer -> getTitle(); ?></a>
					</div>					
				</li>
				<li class="menuDivider">
				</li>
				<li>
					<a href="<?php echo Agilet::getUrl('manage'); ?>"><?php echo _T('Messages')?></a>
				</li>
				<li>
					<a href="<?php echo Agilet::getUrl('manage'); ?>"><?php echo _T('Friends')?></a>
				</li>
				<li class="menuDivider">
				</li>
				<li>
					<a href="<?php echo Agilet::getUrl('manage'); ?>"><?php echo _T('Settings')?></a>
				</li>
				<li>
					<a href="<?php echo Agilet::getUrl('dang-xuat'); ?>"><?php echo _T('Logout'); ?></a>
				</li>
			</ul>
		</li>
		<?php else: ?>
		<li class="right">
			<a href="<?php echo Agilet::getUrl('dang-ki'); ?>">Đăng kí</a>
		</li>
		<li class="right">
			<a href="<?php echo Agilet::getUrl('dang-nhap'); ?>">Đăng nhập</a>
		</li>
		<?php endif; ?>
	</ul>
	<div class="clear-fix"></div>
</div>